package com.pojo;

public class Client {
	int clno;
	String cname;
	int csex;
	int cage;
	int mno;
	int mnum;
	int cno;
	String caddress;
	String cphone;
	String csymptom;
	String cdate;
	String cremark;
	public int getClno() {
		return clno;
	}
	public void setClno(int clno) {
		this.clno = clno;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public int getCsex() {
		return csex;
	}
	public void setCsex(int csex) {
		this.csex = csex;
	}
	public int getCage() {
		return cage;
	}
	public void setCage(int cage) {
		this.cage = cage;
	}
	public int getMno() {
		return mno;
	}
	public void setMno(int mno) {
		this.mno = mno;
	}
	public int getMnum() {
		return mnum;
	}
	public void setMnum(int mnum) {
		this.mnum = mnum;
	}
	public int getCno() {
		return cno;
	}
	public void setCno(int cno) {
		this.cno = cno;
	}
	public String getCaddress() {
		return caddress;
	}
	public void setCaddress(String caddress) {
		this.caddress = caddress;
	}
	public String getCphone() {
		return cphone;
	}
	public void setCphone(String cphone) {
		this.cphone = cphone;
	}
	public String getCsymptom() {
		return csymptom;
	}
	public void setCsymptom(String csymptom) {
		this.csymptom = csymptom;
	}
	public String getCdate() {
		return cdate;
	}
	public void setCdate(String cdate) {
		this.cdate = cdate;
	}
	public String getCremark() {
		return cremark;
	}
	public void setCremark(String cremark) {
		this.cremark = cremark;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((caddress == null) ? 0 : caddress.hashCode());
		result = prime * result + cage;
		result = prime * result + ((cdate == null) ? 0 : cdate.hashCode());
		result = prime * result + clno;
		result = prime * result + ((cname == null) ? 0 : cname.hashCode());
		result = prime * result + cno;
		result = prime * result + ((cphone == null) ? 0 : cphone.hashCode());
		result = prime * result + ((cremark == null) ? 0 : cremark.hashCode());
		result = prime * result + csex;
		result = prime * result
				+ ((csymptom == null) ? 0 : csymptom.hashCode());
		result = prime * result + mno;
		result = prime * result + mnum;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Client other = (Client) obj;
		if (caddress == null) {
			if (other.caddress != null)
				return false;
		} else if (!caddress.equals(other.caddress))
			return false;
		if (cage != other.cage)
			return false;
		if (cdate == null) {
			if (other.cdate != null)
				return false;
		} else if (!cdate.equals(other.cdate))
			return false;
		if (clno != other.clno)
			return false;
		if (cname == null) {
			if (other.cname != null)
				return false;
		} else if (!cname.equals(other.cname))
			return false;
		if (cno != other.cno)
			return false;
		if (cphone == null) {
			if (other.cphone != null)
				return false;
		} else if (!cphone.equals(other.cphone))
			return false;
		if (cremark == null) {
			if (other.cremark != null)
				return false;
		} else if (!cremark.equals(other.cremark))
			return false;
		if (csex != other.csex)
			return false;
		if (csymptom == null) {
			if (other.csymptom != null)
				return false;
		} else if (!csymptom.equals(other.csymptom))
			return false;
		if (mno != other.mno)
			return false;
		if (mnum != other.mnum)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Client [clno=" + clno + ", cname=" + cname + ", csex=" + csex
				+ ", cage=" + cage + ", mno=" + mno + ", mnum=" + mnum
				+ ", cno=" + cno + ", caddress=" + caddress + ", cphone="
				+ cphone + ", csymptom=" + csymptom + ", cdate=" + cdate
				+ ", cremark=" + cremark + "]";
	}
	public Client(int clno, String cname, int csex, int cage, int mno,
			int mnum, int cno, String caddress, String cphone, String csymptom,
			String cdate, String cremark) {
		super();
		this.clno = clno;
		this.cname = cname;
		this.csex = csex;
		this.cage = cage;
		this.mno = mno;
		this.mnum = mnum;
		this.cno = cno;
		this.caddress = caddress;
		this.cphone = cphone;
		this.csymptom = csymptom;
		this.cdate = cdate;
		this.cremark = cremark;
	}
	public Client() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
